package tests;

import static org.junit.Assert.*;

import java.util.ArrayList;
import java.util.List;

import model.Job;
import model.Park;
import model.User;

import org.junit.Test;

import controller.Options;
import controller.PersistentStorage;

public class PersistantStorageTest {

  @Test
  public void test() {
    List<User> users = new ArrayList<User>();
    List<Park> parks = new ArrayList<Park>();
    List<Job> jobs = new ArrayList<Job>();
    Options options = new Options();
    PersistentStorage persist = new PersistentStorage();
    String loaded_xml = persist.loadData(parks, users, jobs, options);
    String stored_xml = persist.storeData(parks, users, jobs, options);
    assertEquals(loaded_xml, stored_xml);
  }

}
